<?php
include_once('ThirdParty/GContacts.php');
class GetContacts
{
	protected $objGContact;
	protected $objGClient;
	
	function GetGContacts($user,$password)
	{
		$this->objGContact = new GContacts();
		$this->objGClient = $this->objGContact->GoogleContactsAuth($user,$password);
		$arrContacts = $this->objGContact->GoogleContactsAll($this->objGClient,$user);
			
		//$_SESSION['GContacts'] = $arrContacts;
		return $arrContacts;
	}

	function GetContactPic($contact)
	{
		$arrContacts = $this->objGContact->GoogleContactPhoto($this->objGClient);
	}
}
?>